package com.quwan.app.vo.dispatch;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author quan
 * @date 2022-05-25 10:06
 */

@Data
@Accessors(chain = true)
public class DispatchOrderParams implements Serializable {
    private static final long serialVersionUID = -3127653103858492004L;

    @ApiModelProperty(value = "派单图片(xxx,xxx)",required = false)
    private String imgs;

    @NotNull(message = "价格单位 not null")
    @ApiModelProperty(value = "价格单位 0小时 1一口价",required = true)
    private Integer unit;

    @NotBlank(message = "派单价格 not null")
    @ApiModelProperty(value = "派单价格",required = true)
    private String price;

    @NotBlank(message = "派单定金支付方式 not null")
    @ApiModelProperty(value = "定金支付方式 1wx 2zfb",required = true)
    private String payType;

//    @Valid
//    @NotNull(message ="派单时间要求 not null" )
//    @Size(min =1,message = "派单时间要求 not null")
//    @ApiModelProperty(value = "派单时间要求 示例：7_08:00-18:00",required = true)
//    private List<String> timeLimit;

    @ApiModelProperty("定位城市名字")
    private String cityName;
    @NotNull(message = "定位城市代码 not null")
    @ApiModelProperty(value = "定位城市代码",required = true)
    private String cityCode;

    @ApiModelProperty(value = "派单内容",required = true)
    @NotNull(message = "派单内容 not null")
    private String content;


    @ApiModelProperty(value = "派单分类id",required = true)
    private Long categoryId;

    @NotNull(message = "not null")
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd HH:mm:ss",required = true)
    private String  beginTime;

    @NotNull(message = "not null")
    @ApiModelProperty(value = "订单时长",required = true)
    private String  orderTime;

    @NotNull(message = "not null")
    @ApiModelProperty(value = "活动地址",required = true)
    private String  address;

}
